﻿

<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Show Feriado</title>
    </head>
    <body>
        <div class="nav">
           
			<span class="menuButton"><g:link class="list" action="list">Listar Feriados</g:link></span>
			<span class="menuButton"><g:link class="create" action="create">Novo Feriado</g:link></span>
        </div>
        <div class="body">
            <h1>Exibindo Feriado - <b>${feriado.motivo}</b></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="dialog">
                <table>
                    <tbody>

                    
                        <tr class="prop">
                            <td valign="top" class="name">Id:</td>
                            
                            <td valign="top" class="value">${feriado.id}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Motivo:</td>
                            
                            <td valign="top" class="value">${feriado.motivo}</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Data:</td>
                            
                            <td valign="top" class="value">
								<g:if test="${feriado.fixo}"><g:formatDate format="dd-MMMM" date="${feriado.data.time}"/></g:if>
								<g:else><g:formatDate format="dd-MM-yyyy" date="${feriado.data.time}"/></g:else>
								</td>
                            
                        </tr>
                    
                        <tr class="prop">
                            <td valign="top" class="name">Fixo:</td>
                            
                            <td valign="top" class="value">
								<g:if test="${feriado.fixo}">Sim</g:if>
								<g:else>Não</g:else>
							</td>
                            
                        </tr>
                    
                    </tbody>
                </table>
            </div>
            <div class="buttons">
                <g:form>
                    <input type="hidden" name="id" value="${feriado?.id}" />
                    <span class="button"><g:actionSubmit class="edit" action="Edit" value="Editar" /></span>
                    <span class="button"><g:actionSubmit class="delete" onclick="return confirm('Tem certeza?');" action="Delete" value="Excluir"/></span>
                </g:form>
            </div>
        </div>
    </body>
</html>
